<template>
  <view class="new_comer_challenge">
    <view class="head">
      <view class="left" @click="back"
        ><uni-icons color="black" size="24" type="left"
      /></view>
      <view class="title">{{ title }}</view>
      <view></view>
    </view>
    <view class="task-container">
      <view class="task-item">
        <view class="task-title">1、标题标题：</view>
        <view class="task-content"
          >文案内容文案内容文案内容文案内容文案内容文案内容文案内容文案内容文案内容</view
        >
      </view>

      <view class="task-item">
        <view class="task-title">2、标题标题：</view>
        <view class="task-content"
          >文案内容文案内容文案内容文案内容文案内容文案内容文案内容文案内容文案内容</view
        >
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      title: "每日任务",
    };
  },

  methods: {
    back() {
      uni.navigateBack();
    },
  },
};
</script>
<style lang="scss" scoped>
.new_comer_challenge {
  width: 100vw;
  height: 100vh;
  padding: var(--status-bar-height) 30rpx;
  background-image: url("@/static/ring/ill/ill_bg.png");
  background-size: 100% 100%;
  background-repeat: repeat;
  background-position: center;

  .head {
    width: 100%;
    padding: 0 10rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8rpx;

    view {
      flex: 1;
    }

    .title {
      font-weight: 500;
      font-size: 36rpx;
      color: black;
      text-align: center;
    }

    .left {
      text-align: left;
    }
  }

  .scroll_view {
    width: 100%;
    height: calc(100vh - var(--status-bar-height) - 88rpx);

    .scroll_main {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
      row-gap: 15px;
      padding-top: 60rpx;

      .giftItem {
        width: 100%;
        height: 136rpx;
        background-color: rgba($color: #ffffff, $alpha: 0.4);
        border-radius: 16rpx;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .day {
          font-weight: bold;
          font-size: 28rpx;
          color: #999999;

          &.ing {
            color: #2359f8;
          }

          &.will {
            color: black;
          }
        }
      }
    }
  }
}
.task-container {
  font-size: 16px;
  font-weight: 500;
  padding: 20px 10px;
}
.task-item {
  margin-bottom: 10px;
}
</style>
